package com.yingsheng.bi.hks.dto.goods;

import com.yingsheng.bi.hks.dto.HksTransReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 商品新增
 */
@ApiModel(value = "商品新增")
@EqualsAndHashCode(callSuper = true)
@Data
public class GoodsAddReq extends HksTransReq {

    @ApiModelProperty(value = "商品名称",required = true)
    @NotBlank
    private String name;

    @ApiModelProperty(value = "商品分类标识",required = true)
    @NotBlank
    private String categoryId;

    @ApiModelProperty(value = "价格",required = true)
    @NotBlank
    private Double price1;

    @ApiModelProperty(value = "会员价格",required = true)
    @NotBlank
    private Double price2;

    @ApiModelProperty(value = "库存",required = true)
    @NotBlank
    private int stock;

    @ApiModelProperty(value = "图片",required = true)
    @NotBlank
    private String image;

    @ApiModelProperty(value = "描述信息",required = true)
    @NotBlank
    private String description;

    @ApiModelProperty(value = "详情图片",required = true)
    @NotBlank
    private String detailImage;

    @ApiModelProperty(value = "详情内容",required = true)
    @NotBlank
    private String content;

}
